package com.xnyzc.lhy.mis.entity.sidebar;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.Version;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
*
* 机构表
*
* @author liuju
* @since 2019-08-13
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OaSysOffice对象", description="机构表")
public class OaSysOfficeOrder implements Serializable {

private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value="office_id", type = IdType.INPUT)
    private String officeId;

    @ApiModelProperty(value = "父级编号")
    private String parentId;

    @ApiModelProperty(value = "所有父级编号")
    private String parentIds;

    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "排序")
    private BigDecimal sort;

    @ApiModelProperty(value = "归属区域")
    private String areaId;

    @ApiModelProperty(value = "区域编码")
    private String code;

    @ApiModelProperty(value = "机构类型")
    private int type;

    @ApiModelProperty(value = "机构等级")
    private String grade;

    @ApiModelProperty(value = "联系地址")
    private String address;

    @ApiModelProperty(value = "负责人")
    private String master;

    @ApiModelProperty(value = "电话")
    private String phone;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "是否启用")
    private String useable;

    @ApiModelProperty(value = "主负责人")
    private String primaryPerson;

    @ApiModelProperty(value = "副负责人")
    private String deputyPerson;

    @ApiModelProperty(value = "用户来源")
    private String tag;

    @ApiModelProperty(value = "扩展字段1 2020.03.26用来保存分单比例数据")
    private String expand1;

    @ApiModelProperty(value = "扩展字段2")
    private String expand2;

    @ApiModelProperty(value = "扩展字段3")
    private String expand3;

    @ApiModelProperty(value = "版本号")
    @Version
    private Long version;

    @ApiModelProperty(value = "是否删除(0:否,1:是)")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty(value = "创建人")
    private Long createUser;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    private Long updateUser;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;


    @ApiModelProperty(value = "分单比例 经济")
    private String distributionExpress;//分单比例 经济
    @ApiModelProperty(value = "分单比例 舒适")
    private String distributionCompact;//分单比例 舒适
    @ApiModelProperty(value = "分单比例 豪华")
    private String distributionPremium;//分单比例 豪华
    @ApiModelProperty(value = "分单比例 商务")
    private String distributionLuxury;//分单比例 商务


    public static final String OFFICE_ID = "office_id";

    public static final String PARENT_ID = "parent_id";

    public static final String PARENT_IDS = "parent_ids";

    public static final String NAME = "name";

    public static final String SORT = "sort";

    public static final String AREA_ID = "area_id";

    public static final String CODE = "code";

    public static final String TYPE = "type";

    public static final String GRADE = "grade";

    public static final String ADDRESS = "address";

    public static final String MASTER = "master";

    public static final String PHONE = "phone";

    public static final String EMAIL = "email";

    public static final String USEABLE = "useable";

    public static final String PRIMARY_PERSON = "primary_person";

    public static final String DEPUTY_PERSON = "deputy_person";

    public static final String TAG = "tag";

    public static final String EXPAND1 = "expand1";

    public static final String EXPAND2 = "expand2";

    public static final String EXPAND3 = "expand3";

    public static final String VERSION = "version";

    public static final String DELETED = "deleted";

    public static final String CREATE_USER = "create_user";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_USER = "update_user";

    public static final String UPDATE_TIME = "update_time";

    public static final String DISTRIBUTION_ALL = "distribution_all";

}
